package com.geeguo.ebuilder.core.common.model.converter;

import java.util.Date;

public class DateLongMapper {

    public Long asLong(Date date) {
        return date != null ? date.getTime() : null;
    }

    public Date asDate(Long date) {
        return date != null ? new Date(date) : null;
    }
}